<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-icon">&#xe624;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      输入城市/景区/游玩主题
    </div>
	<router-link to="/city">
		<div class="header-right">{{this.city}}<span class="iconfont arrow-icon">&#xe6aa;</span>
        </div>
	</router-link>
    
  </div>
</template>
<script>
export default {
  data() {
    return {
      home: "homeHeader"
    };
  },
  props: {
    city: String
  }
};
</script>

<style>
.header {
  display: flex;
  line-height: 0.86rem;
  background: #00bcd4;
  color: #fff;
}
.header .header-left {
  width: 0.64rem;
  float: left;
}
.header .header-left .back-icon {
  font-size: 0.4rem;
}
.header .header-input {
  flex: 1;
  background: #fff;
  border-radius: 0.1rem;
  margin-top: 0.12rem;
  height: 0.64rem;
  line-height: 0.64rem;
  margin-left: 0.2rem;
  color: #ccc;
  padding-left: 0.2rem;
}
.header .header-right {
  width: 1.24rem;
  float: right;
  text-align: center;
  color: #fff ;
}
.header .header-right .arrow-icon {
  font-size: 0.24rem;
}

 {
  flex: 1;
}
</style>